package com.test;

import com.project.bean.ProductBean;
import com.project.service.IProductService;
import com.project.service.impl.productServiceImpl;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;


/**
 * @Title: com.test.testAlpha
 * @Package: PACKAGE_NAME
 * @Description:
 * @Author: Liang-Xie
 * @Date: 2022/7/12 - 17:38
 */
@SuppressWarnings("all")
public class testAlpha {
    public static void main(String[] args) {
        IProductService service=new productServiceImpl();
//        service.addProduct(new ProductBean("自行车", LocalDate.parse("2000-01-01"),998));
//        service.del(14);
//        service.update(1,7777);
//        List<ProductBean> productBeanList = service.findAll();
//        for(ProductBean productBean : productBeanList){
//            System.out.println(productBean);
//        }
//        System.out.println(service.findAll());
//        System.out.println(service.findById(7));
//        System.out.println(service.findByName("电"));
//        System.out.println(service.findByItem("电",null,null));
//        System.out.println(service.cutByItem(1,"电",null,null));
//        List<ProductBean>productBeanList=new ArrayList<>();
//        productBeanList.add(new ProductBean("iphone",LocalDate.parse("2022-07-13"),4998));
//        productBeanList.add(new ProductBean("motorola",LocalDate.parse("2022-07-12"),3998));
//        productBeanList.add(new ProductBean("nokia",LocalDate.parse("2022-07-13"),5998));
//        productBeanList.add(new ProductBean("samgsung",LocalDate.parse("2022-07-13"),7998));
//        service.addMore(productBeanList);
//            service.delMore(new int[]{5,6});
//        System.out.println(service.findByPrice(2500,5000));



    }
}
